Skip to content

Conversation

@cjc7373
Copy link
Contributor

@cjc7373 cjc7373 commented Sep 3, 2025

fixes #9448

@apecloud-bot
Copy link
Collaborator

Auto Cherry-pick Instructions

Usage:
  - /nopick: Not auto cherry-pick when PR merged.
  - /pick: release-x.x [release-x.x]: Auto cherry-pick to the specified branch when PR merged.

Example:
  - /nopick
  - /pick release-1.0

@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines. label Sep 3, 2025
@cjc7373 cjc7373 added the pick-1.0 Auto cherry-pick to release-1.0 when PR merged label Sep 3, 2025
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.80%. Comparing base (c620878) to head (90c3beb).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9699      +/-   ##
==========================================
+ Coverage   59.68%   59.80%   +0.11%     
==========================================
  Files         551      551              
  Lines       59782    59861      +79     
==========================================
+ Hits        35679    35797     +118     
+ Misses      20844    20812      -32     
+ Partials     3259     3252       -7     
Flag Coverage Δ
unittests 59.80% <100.00%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cjc7373 cjc7373 marked this pull request as ready for review September 3, 2025 10:46
@cjc7373 cjc7373 requested a review from a team as a code owner September 3, 2025 10:46
if pobj.GetDeletionTimestamp().IsZero() {
d, _ := json.Marshal(pobj)
panic("expected DeletionTimestamp is not nil, obj: " + string(d))
ginkgo.GinkgoWriter.Printf("Warning: deleted obj's DeletionTimestamp is nil. This may due to an old reconciliation process is not done. obj: %s", string(d))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove the panic, nobody will notice or care about the warning. Cases may fail due to the residual resources, which are also flaky and hard to debug.

@leon-inf what's your opinion

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, we shouldn't simply remove the panic here. Regarding the specific issue, we should add a mechanism to coordinate the timing of deleting the component and its sub-resources.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try delete Component object without removing the finalizer, so that we can make sure no component's reconciliation is still in progress.

@cjc7373 cjc7373 force-pushed the support/a-flaky-test branch from 587b223 to 6463d11 Compare October 20, 2025 02:32
@github-actions github-actions bot added size/S Denotes a PR that changes 10-29 lines. and removed size/XS Denotes a PR that changes 0-9 lines. labels Oct 20, 2025
@apecloud-bot apecloud-bot added the approved PR Approved Test label Oct 22, 2025
@cjc7373
Copy link
Contributor Author

cjc7373 commented Oct 23, 2025

/approve

@cjc7373 cjc7373 merged commit c2dca51 into main Oct 23, 2025
41 checks passed
@cjc7373 cjc7373 deleted the support/a-flaky-test branch October 23, 2025 09:22
@github-actions github-actions bot added this to the Release 1.1.0 milestone Oct 23, 2025
@apecloud-bot
Copy link
Collaborator

/cherry-pick release-1.0

@apecloud-bot
Copy link
Collaborator

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/apecloud/kubeblocks/actions/runs/18743757235

apecloud-bot pushed a commit that referenced this pull request Oct 23, 2025
(cherry picked from commit c2dca51)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved PR Approved Test pick-1.0 Auto cherry-pick to release-1.0 when PR merged size/S Denotes a PR that changes 10-29 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] A flaky test

5 participants